package cn.yshujia.domain.entity;

import cn.yshujia.domain.enums.ClassifyEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author YShuJia
 * @create 2024/4/23
 * @description 实体
 */

@Data
@TableName ("t_classify")
@Schema (name = "Classify", description = "类别")
public class Classify implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;
	
	@Schema (description = "自增主键")
	@TableId (value = "id", type = IdType.AUTO)
	private Long id;
	
	@Schema (description = "类别名")
	@TableField ("`name`")
	private String name;
	
	@Schema (description = "优先级")
	@TableField ("priority")
	private Integer priority;
	
	@Schema (description = "类型")
	@TableField ("`type`")
	private ClassifyEnum type;
	
	@Schema (description = "简介")
	@TableField ("introduction")
	private String introduction;
	
	@Schema (description = "是否启用 1 启用 0 停用")
	@TableField ("`status`")
	private Boolean status;
}